package com.tczs.server.request;

import java.util.Map;

/**
 * 服务器接收的request
 */
public class ServerRequestModel {

    private String remoteHost;
    private String method;
    private String url;
    private String version;
    private String userAgent;
    private String token;
    private Map<String,Object> params;

    public String getRemoteHost() {
        return remoteHost;
    }

    public void setRemoteHost(String remoteHost) {
        this.remoteHost = remoteHost;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getUserAgent() {
        return userAgent;
    }

    public void setUserAgent(String userAgent) {
        this.userAgent = userAgent;
    }

    public Map<String, Object> getParams() {
        return params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }

    @Override
    public String toString() {
        return "Request{" +
                "remoteHost='" + remoteHost + '\'' +
                ", method='" + method + '\'' +
                ", url='" + url + '\'' +
                ", version='" + version + '\'' +
                ", token='" + token + '\'' +
                ", userAgent='" + userAgent + '\'' +
                ", params=" + params +
                '}';
    }
}

